package com.spa.infrastructure.repository.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spa.infrastructure.annotation.UrlParse;
import lombok.Data;

/**
 * 服务项目扩展表
 */
@TableName("s_massage_service_flow")
@Data
public class MassageServiceFlowPO {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 项目ID
     */
    @TableField(value = "service_id")
    private Long serviceId;

    /**
     * 描述
     */
    @TableField(value = "content")
    private String content;

    /**
     * 时长 单位:分钟
     */
    @TableField(value = "duration")
    private Integer duration;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 文件ID
     */
    @TableField(value = "img")
    @UrlParse
    private String img;
}
